|
NcApi
|
Typedefs | |
| typedef enum NcApiMessageType | NcApiMessageType |
Enumerations | |
| enum | NcApiMessageType { CommandUnacknowledgedEnum = 0x02, CommandAcknowledgedEnum = 0x03, NodeInfoRequestEnum = 0x08, NeighborListRequestEnum = 0x09, NetCmdEnum = 0x0a, WesCmdEnum = 0x10, WesResponseEnum = 0x11, AltCmdEnum = 0x20, HostAckEnum = 0x50, HostNAckEnum = 0x51, HostDataEnum = 0x52, HostDataHapaEnum = 0x53, HostUappDataEnum = 0x54, HostUappDataHapaEnum = 0x55, NodeInfoReplyEnum = 0x58, NeighborListReplyEnum = 0x59, NetCmdReplyEnum = 0x5a, WesStatusEnum = 0x60, WesSetupRequestEnum = 0x61, CommandRawEnum = 0xff } |
Functions | |
| int | NcApiIsValidFrameTraceSpecific (uint8_t *buffer, uint16_t bufLength) |
| Detmines if the buffer contains a valid TraceFrame message. More... | |
| int | NcApiIsValidApiFrame (uint8_t *buffer, uint16_t bufLength, uint16_t *outStartAt, uint16_t *outLength) |
| Determines if the content in the buffer is a valid Protocol-message. More... | |
| int | NcApiIsValidSysFrame (uint8_t *buffer, uint16_t bufLength, uint16_t *outStartAt, uint16_t *outLength) |
| Determines if the content in the buffer is a valid System-trace-message or a Bootloader-message. More... | |
| int | NcApiIsMsgReadOtpReply (uint8_t *buffer, uint16_t startAt, uint16_t length) |
| Determines whether the message in the buffer contains Uid. More... | |
| int | NcApiIsMsgGetBootLoaderVersionReply (uint8_t *buffer, uint16_t startAt, uint16_t length) |
| Determines whether the message in the buffer contains bootloaderversion. More... | |
| int | NcApiIsMsgGetProtocolVersionReply (uint8_t *buffer, uint16_t startAt, uint16_t length) |
| Determines whether the message in the buffer contains protocolversion. More... | |
| void | NcApiGetMsgAsHostAck (uint8_t *buffer, tNcApiHostAckNack *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsHostData (uint8_t *buffer, tNcApiHostData *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsHostDataHapa (uint8_t *buffer, tNcApiHostDataHapa *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsHostUappData (uint8_t *buffer, tNcApiHostUappData *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsHostUappDataHapa (uint8_t *buffer, tNcApiHostUappDataHapa *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsNodeInfoReply (uint8_t *buffer, tNcApiNodeInfoReply *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsWesStatus (uint8_t *buffer, tNcApiWesStatus *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsWesSetupRequest (uint8_t *buffer, tNcApiWesSetupRequest *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsNodeInfo (uint8_t *buffer, tNcApiNodeInfoReply *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsNeighborListReply (uint8_t *buffer, tNcApiNeighborListReply *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| void | NcApiGetMsgAsNetCmdResponse (uint8_t *buffer, tNcApiNetCmdReply *p) |
| Deserializes the content of the buffer into a corresponding structure. More... | |
| typedef enum NcApiMessageType NcApiMessageType |
| enum NcApiMessageType |
| void NcApiGetMsgAsHostAck | ( | uint8_t * | buffer, |
| tNcApiHostAckNack * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsHostData | ( | uint8_t * | buffer, |
| tNcApiHostData * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsHostDataHapa | ( | uint8_t * | buffer, |
| tNcApiHostDataHapa * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsHostUappData | ( | uint8_t * | buffer, |
| tNcApiHostUappData * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsHostUappDataHapa | ( | uint8_t * | buffer, |
| tNcApiHostUappDataHapa * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsNeighborListReply | ( | uint8_t * | buffer, |
| tNcApiNeighborListReply * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsNetCmdResponse | ( | uint8_t * | buffer, |
| tNcApiNetCmdReply * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsNodeInfo | ( | uint8_t * | buffer, |
| tNcApiNodeInfoReply * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsNodeInfoReply | ( | uint8_t * | buffer, |
| tNcApiNodeInfoReply * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsWesSetupRequest | ( | uint8_t * | buffer, |
| tNcApiWesSetupRequest * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| void NcApiGetMsgAsWesStatus | ( | uint8_t * | buffer, |
| tNcApiWesStatus * | p | ||
| ) |
| buffer | Buffer containing message |
| p | Instance to deserialize into |
| int NcApiIsMsgGetBootLoaderVersionReply | ( | uint8_t * | buffer, |
| uint16_t | startAt, | ||
| uint16_t | length | ||
| ) |
| buffer | Buffer containing message |
| startAt | Index of message start in buffer |
| length | Message length |
| int NcApiIsMsgGetProtocolVersionReply | ( | uint8_t * | buffer, |
| uint16_t | startAt, | ||
| uint16_t | length | ||
| ) |
| buffer | Buffer containing message |
| startAt | Index of message start in buffer |
| length | Message length |
| int NcApiIsMsgReadOtpReply | ( | uint8_t * | buffer, |
| uint16_t | startAt, | ||
| uint16_t | length | ||
| ) |
| buffer | Buffer containing message |
| startAt | Index of message start in buffer |
| length | Message length |
| int NcApiIsValidApiFrame | ( | uint8_t * | buffer, |
| uint16_t | bufLength, | ||
| uint16_t * | outStartAt, | ||
| uint16_t * | outLength | ||
| ) |
| buffer | Received RX-data | |
| bufLength | Number of received bytes | |
| [out] | outStartAt | If a message was found, index into buffer where the message begins |
| [out] | outLength | If a message was found, the message length |
| int NcApiIsValidFrameTraceSpecific | ( | uint8_t * | buffer, |
| uint16_t | bufLength | ||
| ) |
| buffer | Received RX-data |
| bufLength | Buffer length |
| int NcApiIsValidSysFrame | ( | uint8_t * | buffer, |
| uint16_t | bufLength, | ||
| uint16_t * | outStartAt, | ||
| uint16_t * | outLength | ||
| ) |
| buffer | Received RX-data | |
| bufLength | Number of received bytes | |
| [out] | outStartAt | If a message was found, index into buffer where the message begins |
| [out] | outLength | If a message was found, the message length |
1.8.10